Set operations topic
Logical operations on sets.
Functions
-
difference<
T> (Iterable< Set operationsT> iterable, Iterable<Iterable< others) → Set<Object?> >T> -
Returns a new set containing every value in
iterablethat is not in any of theothersiterables. -
disjoint<
T> (Iterable< Set operationsObject?> a, Iterable<Object?> b) → bool -
Returns true if
aandbare disjoint: ifaandbcontain no shared value. -
intersection<
T> (Iterable< Set operationsT> iterable, Iterable<Iterable< others) → Set<Object?> >T> - Returns a new set containing every (distinct) value that appears in all of the given iterables.
-
subset<
T> (Iterable< Set operationsObject?> a, Iterable<Object?> b) → bool -
Returns true if
ais a subset ofb: if every value in the given iterableais also in the given iterableb. -
superset<
T> (Iterable< Set operationsObject?> a, Iterable<Object?> b) → bool -
Returns true if
ais a superset ofb: if every value in the given iterablebis also in the given iterablea. -
union<
T> (Iterable< Set operationsIterable< iterables) → Set<T> >T> -
Returns a new set containing every (distinct) value that appears in any of
the given
iterables.